﻿
@{
    ViewBag.Title = "PEUserView";
    Layout = "~/Views/Shared/_MyLayout.cshtml";
}
<style>
    .layui-table-cell {
        height: 20px;
        line-height:20px;
    }
    .laytable-cell-1-0-0 {
        /* width: 130px; */
    }
</style>
<table lay-filter="demo">
    <thead>
        <tr>
            <th lay-data="{field:'A1',title:'A1', width:130,align:'center'}"></th>
            <th lay-data="{field:'A2',title:'A2', width:100,align:'center'}"></th>
            <th lay-data="{field:'A3',title:'A3', width:130,align:'center'}"></th>
            <th lay-data="{field:'A4',title:'A4', width:130,align:'center'}"></th>
            <th lay-data="{field:'A5',title:'A5', width:130,align:'center'}"></th>
            <th lay-data="{field:'A6',title:'A6', width:130,align:'center'}"></th>
            <th lay-data="{field:'A7',title:'A7', width:130,align:'center'}"></th>
            <th lay-data="{field:'A8',title:'A8', width:130,align:'center'}"></th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>前期测算汇总表</td>
        </tr>
        <tr>
            <td>项目名称</td>
            <td></td>
            <td>用电性质</td>
            <td></td>
            <td>所属区域</td>
            <td></td>
            <td>合同金额</td>
            <td></td>
        </tr>
        <tr>
            <td>建筑面积</td>
            <td></td>
            <td>容量(KVA)</td>
            <td></td>
            <td>外线长度</td>
            <td></td>
            <td>红线内报价</td>
            <td></td>
        </tr>
        <tr>
            <td>红线内单方造价</td>
            <td></td>
            <td>红线内容量单价</td>
            <td></td>
            <td>单方造价</td>
            <td></td>
            <td>容量单价</td>
            <td></td>
        </tr>
        <tr>
            <td>楼盘业态</td>
            <td></td>
            <td>公配容量</td>
            <td></td>
            <td>专配容量</td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td>费用类型</td>
            <td>费用类型</td>
            <td>费用目录</td>
            <td>报价成本测算</td>
            <td>实际成本测算</td>
            <td>总成本占比</td>
            <td>合同金额占比</td>
            <td>备注</td>
        </tr>
        <tr>
            <td>工程直接成本</td>
            <td>外线</td>
            <td>外线土建施工费</td>
            <td>1</td>
            <td>2</td>
        </tr>
        <tr>
            <td>外线设备费</td>
            <td>1</td>
            <td>2</td>
        </tr>
        <tr>
            <td>外线材料费</td>
            <td>1</td>
            <td>2</td>
        </tr>
        @*开闭所*@
        <tr>
            <td>开闭所</td>
            <td>设备费</td>
            <td>1</td>
            <td>2</td>
        </tr>
        <tr>

            <td>材料费</td>
            <td>1</td>
            <td>2</td>
        </tr>
        @*公用*@
        <tr>
            <td>公用</td>
            <td>设备费</td>
            <td>1</td>
            <td>2</td>
        </tr>
        <tr>
            <td>材料费</td>
            <td>1</td>
            <td>2</td>
        </tr>
        @*专用*@
        <tr>
            <td>专用</td>
            <td>设备费</td>
            <td>1</td>
            <td>2</td>
        </tr>
        <tr>
            <td>材料费</td>
            <td>1</td>
            <td>2</td>
        </tr>
        @*总体*@
        <tr>

            <td>总体</td>
            <td>安装施工费</td>
            <td>1</td>
            <td>2</td>
        </tr>
        <tr>

            <td>实验调试费</td>
            <td>1</td>
            <td>2</td>
        </tr>
        <tr>

            <td>运行准备费</td>
            <td>1</td>
            <td>2</td>
        </tr>
        @*业主要求*@
        <tr>
            <td>业主要求</td>
            <td>土建施工费(红线内)</td>
            <td>1</td>
            <td>2</td>
        </tr>
        <tr>
            <td>柴发</td>
            <td>1</td>
            <td>2</td>
        </tr>
        <tr>

            <td>一户一表费</td>
            <td>1</td>
            <td>2</td>
        </tr>
        <tr>
            <td>联络路径</td>
            <td>1</td>
            <td>2</td>
        </tr>
        <tr>
            <td>充电桩</td>
            <td>1</td>
            <td>2</td>
        </tr>
        @*小计*@
        <tr>
            <td>小计</td>
            <td>XXXXX</td>
            <td></td>
        </tr>
        @*工程管理成本 多径合同金额*@
        <tr>
            <td>工程管理成本</td>
            <td>多经合同金额(元)</td>
            <td></td>
        </tr>
        @*工程管理成本*@
        <tr>
            <td>电力局费用</td>
            <td>设计费</td>

        </tr>
        <tr>
            <td>监理费</td>
        </tr>
        <tr>
            <td>多径管理费</td>
        </tr>
        <tr>
            <td>公司费用</td>
            <td>税金</td>
        </tr>
        <tr>
            <td>资金成本</td>
        </tr>
        <tr>
            <td>公司管理费</td>
        </tr>
        <tr>
            <td>业务费</td>
        </tr>
        @*合计、利润、报价金额*@
        <tr>
            <td>成本合计</td>
            <td>XXXXX</td>
        </tr>
        <tr>
            <td>利润</td>
            <td>XXXXX</td>
        </tr>
        @*<tr>
            <td>单方造价（元/平方）</td>
            <td>XXXXX</td>
        </tr>
        <tr>
            <td>容量单价（元/KVA）</td>
            <td>XXXXX</td>
        </tr>
        <tr>
            <td>红线内单方造价（元/平方）</td>
            <td>XXXXX</td>
        </tr>*@

    </tbody>
</table>

<script type="text/javascript">
    var PreEstId = parent.$("#PreEstId").val();
    var PreEstType = parent.$("#ProjectType").val();
    var MapBJ =  @Html.Raw(Json.Encode(ViewBag.MapBJ));
    var MapCS =  @Html.Raw(Json.Encode(ViewBag.MapCS));
    for (var key in MapBJ) {
        if (key.indexOf("Memo") == -1) {
            if (MapBJ[key] == null || MapBJ[key] == "") {
                MapBJ[key] = 0;
            }           
        }
    }
    for (var key in MapCS) {
        if (key.indexOf("Memo") == -1) {
            if (MapCS[key] == null || MapCS[key] == "") {
                MapCS[key] = 0;
            }  
        }
    }



    var table;
    layui.use(['form', 'table', 'upload', 'layer', 'element'], function () {
        var element = layui.element;
        var form = layui.form;
        table = layui.table;
        var tab = parent.tab;
        var layer = layui.layer;

        //转换静态表格
        table.init('demo', {

             limit: 100 //注意：请务必确保 limit 参数（默认：10）是与你服务端限定的数据条数一致

            //支持所有基础参数

             ,done: function (res, curr, count) {
                //如果是异步请求数据方式，res即为你接口返回的信息。
                //如果是直接赋值的方式，res即为：{data: [], count: 99} data为当前页数据、count为数据总长度
                //console.log(res);
                ////得到当前页码
                //console.log(curr);
                ////得到数据总量
                //console.log(count);
                tableInit();
            }
        });

        table.on('edit(demo)', function (obj) { //注：edit是固定事件名，test是table原始容器的属性 lay-filter="对应的值"
            //console.log(obj.value); //得到修改后的值
            //console.log(obj.field); //当前编辑的字段名
            //console.log(obj.data); //所在行的所有相关数据

            var temp = obj;
            var RowIndex = obj.tr[0].rowIndex;
            var FieldName, FieldValue;
            switch (RowIndex) {
                case 1:
                    if (obj.field == "A2") {
                        FieldName = "XMMC";
                    }
                    if (obj.field == "A4") {
                        FieldName = "YDXZ";
                    }
                    if (obj.field == "A6") {
                        FieldName = "SSQY";
                    }
                    if (obj.field == "A8") {
                        FieldName = "HTJE";
                    }
                    break;
                case 2:
                    if (obj.field == "A2") {
                        FieldName = "JZMJ";
                    }
                    if (obj.field == "A4") {
                        FieldName = "RL";
                    }
                    if (obj.field == "A6") {
                        FieldName = "WXCD";
                    }
                    if (obj.field == "A8") {
                        FieldName = "HXNBJJE";
                    }
                    break;
                case 2:
                    if (obj.field == "A2") {
                        FieldName = "JZMJ";
                    }
                    if (obj.field == "A4") {
                        FieldName = "RL";
                    }
                    if (obj.field == "A6") {
                        FieldName = "WXCD";
                    }
                    if (obj.field == "A8") {
                        FieldName = "HXNBJJE";
                    }
                    break;
                case 4:
                    if (obj.field == "A2") {
                        FieldName = "LPYT";
                    }
                    if (obj.field == "A4") {
                        FieldName = "GPRL";
                    }
                    if (obj.field == "A6") {
                        FieldName = "ZPRL";
                    }
                    break;
                case 6:
                    if (obj.field == "A8") {
                        FieldName = "Memo_WXTJ";
                    }
                    break;
                case 7:
                    if (obj.field == "A6") {
                        FieldName = "Memo_WXSB";
                    }
                    break;
                case 8:
                    if (obj.field == "A6") {
                        FieldName = "Memo_WXCL";
                    }
                    break;
                case 9:
                    if (obj.field == "A7") {
                        FieldName = "Memo_KBSSB";
                    }
                    break;
                case 10:
                    if (obj.field == "A6") {
                        FieldName = "Memo_KBSCL";
                    }
                    break;
                case 11:
                    if (obj.field == "A7") {
                        FieldName = "Memo_GYSB";
                    }
                    break;
                case 12:
                    if (obj.field == "A6") {
                        FieldName = "Memo_GYCL";
                    }
                    break;
                case 13:
                    if (obj.field == "A7") {
                        FieldName = "Memo_ZYSB";
                    }
                    break;
                case 14:
                    if (obj.field == "A6") {
                        FieldName = "Memo_ZYCL";
                    }
                    break;
                case 15:
                    if (obj.field == "A7") {
                        FieldName = "Memo_ZTAZ";
                    }
                    break;
                case 16:
                    if (obj.field == "A6") {
                        FieldName = "Memo_ZTSYTSF";
                    }
                    break;
                //case 17:  //17为运行，没有相应字段了
                //    if (obj.field == "A6") {
                //        FieldName = "Memo_ZTTJSGF";
                //    }
                //    break;
                case 18:
                    if (obj.field == "A7") {
                        FieldName = "Memo_ZTTJSGF";
                    }
                    break;
                case 19:
                    if (obj.field == "A3") {
                        FieldName = "YZYQ_CF";
                    }
                    if (obj.field == "A6") {
                        FieldName = "Memo_YZYQCF";
                    }
                    break;
                case 20:
                    if (obj.field == "A3") {
                        FieldName = "YZYQ_YHYB";
                    }
                    if (obj.field == "A6") {
                        FieldName = "Memo_YZYQYHYB";
                    }
                    break;
                case 21:
                    if (obj.field == "A3") {
                        FieldName = "YZYQ_LLLJ";
                    }
                    if (obj.field == "A6") {
                        FieldName = "Memo_YZYQLLLJ";
                    }
                    break;
                case 22:
                    if (obj.field == "A3") {
                        FieldName = "YZYQ_CDZ";
                    }
                    if (obj.field == "A6") {
                        FieldName = "Memo_YZYQCDZ";
                    }
                    break;
                case 24:
                    if (obj.field == "A4") {
                        FieldName = "DJHTJE";
                    }
                    if (obj.field == "A7") {
                        FieldName = "Memo_DJHTJE";
                    }
                    break;
                case 25:
                    if (obj.field == "A7") {
                        FieldName = "SJF";
                    }
                    if (obj.field == "A8") {
                        FieldName = "Memo_SJF";
                    }
                    break;

                case 26:
                    if (obj.field == "A6") {
                        FieldName = "JLF";
                    }
                    if (obj.field == "A7") {
                        FieldName = "Memo_JLF";
                    }
                    break;
                case 27:
                    if (obj.field == "A6") {
                        FieldName = "DJGLF";
                    }
                    if (obj.field == "A7") {
                        FieldName = "Memo_DJGLF";
                    }
                    break;
                case 28:
                    if (obj.field == "A7") {
                        FieldName = "SJ";
                    }
                    if (obj.field == "A8") {
                        FieldName = "Memo_SJ";
                    }
                    break;
                case 29:
                    if (obj.field == "A6") {
                        FieldName = "ZJCB";
                    }
                    if (obj.field == "A7") {
                        FieldName = "Memo_ZJCB";
                    }
                    break;
                case 30:
                    if (obj.field == "A6") {
                        FieldName = "GSGLF";
                    }
                    if (obj.field == "A7") {
                        FieldName = "Memo_GSGLF";
                    }
                    break;
                case 31:
                    if (obj.field == "A6") {
                        FieldName = "Memo_YWF";
                    }
                    break;

            }

            FieldValue = obj.value;
            UpdateTable(FieldName, FieldValue, PreEstId);

        });


    });

    function UpdateTable(FieldName, FieldValue, PreEstId) {

        $.ajax({
            type: "POST",
            url: "/Estimate/PEUserCSUpdate",
            async: false,
            data: { "FieldName": FieldName, "FieldValue": FieldValue, "PreEstId": PreEstId, "PreEstType": PreEstType },
            success: function (msg) {
                if (msg.result == "OK") {
                    parent.layer.msg('修改成功，请刷新', { icon: 6, time: 1000 });
                    MapBJ = msg.MapBJ;
                    MapCS = msg.MapCS;
                    for (var key in MapBJ) {
                        if (key.indexOf("Memo") == -1) {
                            if (MapBJ[key] == null || MapBJ[key] == "") {
                                MapBJ[key] = 0;
                            }
                        }
                    }
                    for (var key in MapCS) {
                        if (key.indexOf("Memo") == -1) {
                            if (MapCS[key] == null || MapCS[key] == "") {
                                MapCS[key] = 0;
                            }
                        }
                    }
                    tableInit();
                } else {
                    alert(msg.result);
                }
            }
        });
    }
    //去除格式
    function MyremoveClass(temp1) {
        var className = "";
        var tempdom = $(temp1).find("div[class*='laytable-cell-1-0-']");
        for (var i = 0; i < tempdom.length; i++) {
            className = "laytable-cell-1-0-" + i;
            $($(tempdom)[i]).removeClass(className);
        }
    }

    function tableInit() {

        var tempNum = 0; 
        //报价小计
        var BJXJ = MapBJ.YZYQ_CDZ + MapBJ.YZYQ_LLLJ + MapBJ.YZYQ_YHYB + MapBJ.YZYQ_CF + MapBJ.TestFee + MapBJ.CivilPrice_HXN + MapBJ.InstallFee_WX +
            MapBJ.InstallFee_KBS + MapBJ.InstallFee_GP + MapBJ.InstallFee_ZP + MapBJ.MeterialFee_ZP + MapBJ.EquipFee_ZP +
            MapBJ.MeterialFee_GP + MapBJ.EquipFee_GP + MapBJ.MeterialFee_KBS + MapBJ.EquipFee_KBS + MapBJ.MeterialFee_WX + MapBJ.MeterialFee_YX +
            MapBJ.EquipFee_WX + MapBJ.CivilPrice_WX;
        //报价多径合同金额计算
        var BJ_DJHTJE = BJXJ - MapBJ.CivilPrice_WX - MapBJ.CivilPrice_HXN - MapBJ.YZYQ_CF - MapBJ.YZYQ_YHYB - MapBJ.YZYQ_LLLJ - MapBJ.YZYQ_CDZ;
        BJ_DJHTJE = BJ_DJHTJE * 1.5;
        //报价合计
        var BJHJ = BJXJ + MapBJ.SJF * BJ_DJHTJE + MapBJ.JLF * BJ_DJHTJE + MapBJ.DJGLF * BJ_DJHTJE
            + MapBJ.SJ * BJ_DJHTJE + MapBJ.ZJCB + MapBJ.GSGLF * BJ_DJHTJE + MapBJ.CoordFee;

        //测算小计
        var CSXJ = MapCS.YZYQ_CDZ + MapCS.YZYQ_LLLJ + MapCS.YZYQ_YHYB + MapCS.YZYQ_CF + MapCS.TestFee + MapCS.CivilPrice_HXN + MapCS.InstallFee_WX +
            MapCS.InstallFee_KBS + MapCS.InstallFee_GP + MapCS.InstallFee_ZP + MapCS.MeterialFee_ZP + MapCS.EquipFee_ZP +
            MapCS.MeterialFee_GP + MapCS.EquipFee_GP + MapCS.MeterialFee_KBS + MapCS.EquipFee_KBS + MapCS.MeterialFee_WX + MapCS.MeterialFee_YX +
            MapCS.EquipFee_WX + MapCS.CivilPrice_WX;
        //测算多径合同金额计算
        var CS_DJHTJE = CSXJ - MapCS.CivilPrice_WX - MapCS.CivilPrice_HXN - MapCS.YZYQ_CF - MapCS.YZYQ_YHYB - MapCS.YZYQ_LLLJ - MapCS.YZYQ_CDZ;
        CS_DJHTJE = CS_DJHTJE * 1.5;
        //测算合计
        var CSHJ = CSXJ + MapCS.SJF * CS_DJHTJE + MapCS.JLF * CS_DJHTJE + MapCS.DJGLF * CS_DJHTJE
            + MapCS.SJ * CS_DJHTJE + MapCS.ZJCB + MapCS.GSGLF * CS_DJHTJE + MapCS.CoordFee;


        var temp1 = $(".layui-table-body tbody").find("tr[data-index='0']");
        //整理第1行元素
        $(temp1).find("td[data-field!='A1']").remove();
        $(temp1).find("td[data-field='A1']").attr("colspan", "8");
        $(temp1).find("td[data-field='A1'] div").removeClass("laytable-cell-1-0-0");
        MyremoveClass(temp1);
        

        //第2行数据整理  项目名称，用电性质等
        temp1 = $(".layui-table-body tbody").find("tr[data-index='1']");
        $(temp1).find("td[data-field='A2']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A4']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A6']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A8']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A2'] div").text(MapCS.XMMC);
        $(temp1).find("td[data-field='A4'] div").text(MapCS.YDXZ);
        $(temp1).find("td[data-field='A6'] div").text(MapCS.SSQY);
        $(temp1).find("td[data-field='A8'] div").text(MapCS.HTJE);
        //MyremoveClass(temp1);

        //第3行数据整理
        temp1 = $(".layui-table-body tbody").find("tr[data-index='2']");
        $(temp1).find("td[data-field='A2']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A4']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A6']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A8']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A2'] div").text(MapCS.JZMJ);
        $(temp1).find("td[data-field='A4'] div").text(MapCS.RL);
        $(temp1).find("td[data-field='A6'] div").text(MapCS.WXCD);
        $(temp1).find("td[data-field='A8'] div").text(MapCS.HXNBJJE);




        //第4行数据整理
        temp1 = $(".layui-table-body tbody").find("tr[data-index='3']");
        //$(temp1).find("td[data-field='A2']").attr("data-edit", "text");
        //$(temp1).find("td[data-field='A4']").attr("data-edit", "text");
        //$(temp1).find("td[data-field='A6']").attr("data-edit", "text");
        //$(temp1).find("td[data-field='A8']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A2'] div").text((MapCS.HXNBJJE / MapCS.JZMJ).toFixed(2));
        $(temp1).find("td[data-field='A4'] div").text((MapCS.HXNBJJE / MapCS.RL).toFixed(2));
        $(temp1).find("td[data-field='A6'] div").text((MapCS.HTJE / MapCS.JZMJ).toFixed(2));
        $(temp1).find("td[data-field='A8'] div").text((MapCS.HTJE / MapCS.RL).toFixed(2));
        MyremoveClass(temp1);

        //新增 用户业态，公配容量，专配容量
        temp1 = $(".layui-table-body tbody").find("tr[data-index='4']");
        $(temp1).find("td[data-field='A2']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A4']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A6']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A2'] div").text(MapCS.LPYT);
        $(temp1).find("td[data-field='A4'] div").text(MapCS.GPRL);
        $(temp1).find("td[data-field='A6'] div").text(MapCS.ZPRL);


        //第4行数据整理
        temp1 = $(".layui-table-body tbody").find("tr[data-index='5']");


        //第5行数据整理  工程直接成本-外线-土建施工费
        temp1 = $(".layui-table-body tbody").find("tr[data-index='6']");
        $(temp1).find("td[data-field='A1']").attr("rowspan", "17");
        $(temp1).find("td[data-field='A2']").attr("rowspan", "3");
        $(temp1).find("td[data-field='A8']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A4'] div").text(MapBJ.CivilPrice_WX);
        $(temp1).find("td[data-field='A5'] div").text(MapCS.CivilPrice_WX);
        $(temp1).find("td[data-field='A6'] div").text((MapCS.CivilPrice_WX / CSHJ).toFixed(3));
        $(temp1).find("td[data-field='A7'] div").text((MapCS.CivilPrice_WX / MapCS.HTJE).toFixed(3));
        $(temp1).find("td[data-field='A8'] div").text(MapCS.Memo_WXTJ);
        MyremoveClass(temp1);



        //第6行数据整理 工程直接成本-外线-外线设备费
        temp1 = $(".layui-table-body tbody").find("tr[data-index='7']");
        $(temp1).find("td[data-field='A7']").remove();
        $(temp1).find("td[data-field='A8']").remove();
        $(temp1).find("td[data-field='A6']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A2'] div").text(MapBJ.EquipFee_WX);
        $(temp1).find("td[data-field='A3'] div").text(MapCS.EquipFee_WX);
        $(temp1).find("td[data-field='A4'] div").text((MapCS.EquipFee_WX / CSHJ).toFixed(3));
        $(temp1).find("td[data-field='A5'] div").text((MapCS.EquipFee_WX / MapCS.HTJE).toFixed(3));
        $(temp1).find("td[data-field='A6'] div").text(MapCS.Memo_WXSB);
        MyremoveClass(temp1);

        //第7行数据整理 工程直接成本-外线-外线材料费
        temp1 = $(".layui-table-body tbody").find("tr[data-index='8']");
        $(temp1).find("td[data-field='A7']").remove();
        $(temp1).find("td[data-field='A8']").remove();
        $(temp1).find("td[data-field='A6']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A2'] div").text(MapBJ.MeterialFee_WX);
        $(temp1).find("td[data-field='A3'] div").text(MapCS.MeterialFee_WX);
        $(temp1).find("td[data-field='A4'] div").text((MapCS.MeterialFee_WX / CSHJ).toFixed(3));
        $(temp1).find("td[data-field='A5'] div").text((MapCS.MeterialFee_WX / MapCS.HTJE).toFixed(3));
        $(temp1).find("td[data-field='A6'] div").text(MapCS.Memo_WXCL);
        MyremoveClass(temp1);

        //第8行数据整理 工程直接成本-开闭所-设备费
        temp1 = $(".layui-table-body tbody").find("tr[data-index='9']");
        $(temp1).find("td[data-field='A1']").attr("rowspan", "2");
        $(temp1).find("td[data-field='A8']").remove();
        $(temp1).find("td[data-field='A7']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A3'] div").text(MapBJ.EquipFee_KBS);
        $(temp1).find("td[data-field='A4'] div").text(MapCS.EquipFee_KBS);
        $(temp1).find("td[data-field='A5'] div").text((MapCS.EquipFee_KBS / CSHJ).toFixed(3));
        $(temp1).find("td[data-field='A6'] div").text((MapCS.EquipFee_KBS / MapCS.HTJE).toFixed(3));
        $(temp1).find("td[data-field='A7'] div").text(MapCS.Memo_KBSSB);
        MyremoveClass(temp1);

        //第9行数据整理 工程直接成本-开闭所-材料费
        temp1 = $(".layui-table-body tbody").find("tr[data-index='10']");
        $(temp1).find("td[data-field='A8']").remove();
        $(temp1).find("td[data-field='A7']").remove();
        $(temp1).find("td[data-field='A6']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A2'] div").text(MapBJ.MeterialFee_KBS);
        $(temp1).find("td[data-field='A3'] div").text(MapCS.MeterialFee_KBS);
        $(temp1).find("td[data-field='A4'] div").text((MapCS.MeterialFee_KBS / CSHJ).toFixed(3));
        $(temp1).find("td[data-field='A5'] div").text((MapCS.MeterialFee_KBS / MapCS.HTJE).toFixed(3));
        $(temp1).find("td[data-field='A6'] div").text(MapCS.Memo_KBSCL);
        MyremoveClass(temp1);
        
        //第10行数据整理 工程直接成本-公用-设备费
        temp1 = $(".layui-table-body tbody").find("tr[data-index='11']");
        $(temp1).find("td[data-field='A1']").attr("rowspan", "2");
        $(temp1).find("td[data-field='A8']").remove();
        $(temp1).find("td[data-field='A7']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A3'] div").text(MapBJ.EquipFee_GP);
        $(temp1).find("td[data-field='A4'] div").text(MapCS.EquipFee_GP);
        $(temp1).find("td[data-field='A5'] div").text((MapCS.EquipFee_GP / CSHJ).toFixed(3));
        $(temp1).find("td[data-field='A6'] div").text((MapCS.EquipFee_GP / MapCS.HTJE).toFixed(3));
        $(temp1).find("td[data-field='A7'] div").text(MapCS.Memo_GYSB);
        MyremoveClass(temp1);

        //第11行数据整理 工程直接成本-公用-材料费
        temp1 = $(".layui-table-body tbody").find("tr[data-index='12']");
        $(temp1).find("td[data-field='A8']").remove();
        $(temp1).find("td[data-field='A7']").remove();
        $(temp1).find("td[data-field='A6']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A2'] div").text(MapBJ.MeterialFee_GP);
        $(temp1).find("td[data-field='A3'] div").text(MapCS.MeterialFee_GP);
        $(temp1).find("td[data-field='A4'] div").text((MapCS.MeterialFee_GP / CSHJ).toFixed(3));
        $(temp1).find("td[data-field='A5'] div").text((MapCS.MeterialFee_GP / MapCS.HTJE).toFixed(3));
        $(temp1).find("td[data-field='A6'] div").text(MapCS.Memo_GYCL);
        MyremoveClass(temp1);

        //第12行数据整理 工程直接成本-专用-设备费
        temp1 = $(".layui-table-body tbody").find("tr[data-index='13']");
        $(temp1).find("td[data-field='A1']").attr("rowspan", "2");
        $(temp1).find("td[data-field='A8']").remove();
        $(temp1).find("td[data-field='A7']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A3'] div").text(MapBJ.EquipFee_ZP);
        $(temp1).find("td[data-field='A4'] div").text(MapCS.EquipFee_ZP);
        $(temp1).find("td[data-field='A5'] div").text((MapCS.EquipFee_ZP / CSHJ).toFixed(3));
        $(temp1).find("td[data-field='A6'] div").text((MapCS.EquipFee_ZP / MapCS.HTJE).toFixed(3));
        $(temp1).find("td[data-field='A7'] div").text(MapCS.Memo_ZYSB);
        MyremoveClass(temp1);

        //第13行数据整理 工程直接成本-专用-材料费
        temp1 = $(".layui-table-body tbody").find("tr[data-index='14']");
        $(temp1).find("td[data-field='A8']").remove();
        $(temp1).find("td[data-field='A7']").remove();
        $(temp1).find("td[data-field='A6']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A2'] div").text(MapBJ.MeterialFee_ZP);
        $(temp1).find("td[data-field='A3'] div").text(MapCS.MeterialFee_ZP);
        $(temp1).find("td[data-field='A4'] div").text((MapCS.MeterialFee_ZP / CSHJ).toFixed(3));
        $(temp1).find("td[data-field='A5'] div").text((MapCS.MeterialFee_ZP / MapCS.HTJE).toFixed(3));
        $(temp1).find("td[data-field='A6'] div").text(MapCS.Memo_ZYCL);
        MyremoveClass(temp1);

        //第14行数据整理 工程直接成本-总体-安装施工费
        temp1 = $(".layui-table-body tbody").find("tr[data-index='15']");
        $(temp1).find("td[data-field='A1']").attr("rowspan", "3");
        $(temp1).find("td[data-field='A8']").remove();
        $(temp1).find("td[data-field='A7']").attr("data-edit", "text");
        
        $(temp1).find("td[data-field='A3'] div").text((MapBJ.InstallFee_WX + MapBJ.InstallFee_KBS + MapBJ.InstallFee_GP + MapBJ.InstallFee_ZP));
        tempNum = MapCS.InstallFee_WX + MapCS.InstallFee_KBS + MapCS.InstallFee_GP + MapCS.InstallFee_ZP;
        $(temp1).find("td[data-field='A4'] div").text(tempNum);
        $(temp1).find("td[data-field='A5'] div").text((tempNum / CSHJ).toFixed(3));
        $(temp1).find("td[data-field='A6'] div").text((tempNum / MapCS.HTJE).toFixed(3));
        $(temp1).find("td[data-field='A7'] div").text(MapCS.Memo_ZTAZ);
        MyremoveClass(temp1);

        //第15行数据整理 工程直接成本-总体-实验调试费
        temp1 = $(".layui-table-body tbody").find("tr[data-index='16']");
        $(temp1).find("td[data-field='A8']").remove();
        $(temp1).find("td[data-field='A7']").remove();
        $(temp1).find("td[data-field='A6']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A1'] div").removeClass("laytable-cell-1-0-0");
        $(temp1).find("td[data-field='A2'] div").text(MapBJ.TestFee);
        $(temp1).find("td[data-field='A3'] div").text(MapCS.TestFee);
        $(temp1).find("td[data-field='A4'] div").text((MapCS.TestFee / CSHJ).toFixed(3));
        $(temp1).find("td[data-field='A5'] div").text((MapCS.TestFee / MapCS.HTJE).toFixed(3));
        $(temp1).find("td[data-field='A6'] div").text(MapCS.Memo_ZTSYTSF);
        MyremoveClass(temp1);

        //第16行数据整理 工程直接成本-总体-运行准备费
        temp1 = $(".layui-table-body tbody").find("tr[data-index='17']");
        $(temp1).find("td[data-field='A8']").remove();
        $(temp1).find("td[data-field='A7']").remove();
        //$(temp1).find("td[data-field='A6']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A1'] div").removeClass("laytable-cell-1-0-0");
        $(temp1).find("td[data-field='A2'] div").text(MapBJ.MeterialFee_YX);
        $(temp1).find("td[data-field='A3'] div").text(MapCS.MeterialFee_YX);
        $(temp1).find("td[data-field='A4'] div").text((MapCS.MeterialFee_YX / CSHJ).toFixed(3));
        $(temp1).find("td[data-field='A5'] div").text((MapCS.MeterialFee_YX / MapCS.HTJE).toFixed(3));
        //$(temp1).find("td[data-field='A6'] div").text(MapCS.Memo_ZTTJSGF);
        MyremoveClass(temp1);

        //第17行数据整理 工程直接成本-业主要求-土建施工费（红线内）
        temp1 = $(".layui-table-body tbody").find("tr[data-index='18']");
        $(temp1).find("td[data-field='A1']").attr("rowspan", "5");
        $(temp1).find("td[data-field='A8']").remove();
        //$(temp1).find("td[data-field='A4']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A7']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A3'] div").text(MapBJ.CivilPrice_HXN);
        $(temp1).find("td[data-field='A4'] div").text(MapCS.CivilPrice_HXN);
        $(temp1).find("td[data-field='A5'] div").text((MapCS.CivilPrice_HXN / CSHJ).toFixed(3));
        $(temp1).find("td[data-field='A6'] div").text((MapCS.CivilPrice_HXN / MapCS.HTJE).toFixed(3));
        $(temp1).find("td[data-field='A7'] div").text(MapCS.Memo_ZTTJSGF);
        MyremoveClass(temp1);


        //$(temp1).find("td[data-field='A8']").remove();
        //$(temp1).find("td[data-field='A7']").remove();
        //$(temp1).find("td[data-field='A6']").attr("data-edit", "text");
        //$(temp1).find("td[data-field='A1'] div").removeClass("laytable-cell-1-0-0");
        //$(temp1).find("td[data-field='A2'] div").text(MapBJ.CivilPrice_HXN);
        //$(temp1).find("td[data-field='A3'] div").text(MapCS.CivilPrice_HXN);
        //$(temp1).find("td[data-field='A4'] div").text((MapCS.CivilPrice_HXN / CSHJ).toFixed(3));
        //$(temp1).find("td[data-field='A5'] div").text((MapCS.CivilPrice_HXN / MapCS.HTJE).toFixed(3));
        //$(temp1).find("td[data-field='A6'] div").text(MapCS.Memo_ZTTJSGF);
        //MyremoveClass(temp1);

        //第18行数据整理 工程直接成本-业主要求-柴发
        temp1 = $(".layui-table-body tbody").find("tr[data-index='19']");
        $(temp1).find("td[data-field='A8']").remove();
        $(temp1).find("td[data-field='A7']").remove();
        $(temp1).find("td[data-field='A6']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A3']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A2'] div").text(MapBJ.YZYQ_CF);
        $(temp1).find("td[data-field='A3'] div").text(MapCS.YZYQ_CF);
        $(temp1).find("td[data-field='A4'] div").text((MapCS.YZYQ_CF / CSHJ).toFixed(3));
        $(temp1).find("td[data-field='A5'] div").text((MapCS.YZYQ_CF / MapCS.HTJE).toFixed(3));
        $(temp1).find("td[data-field='A6'] div").text(MapCS.Memo_YZYQCF);
        MyremoveClass(temp1);


        //第18行数据整理 工程直接成本-业主要求-一户一表
        temp1 = $(".layui-table-body tbody").find("tr[data-index='20']");
        $(temp1).find("td[data-field='A8']").remove();
        $(temp1).find("td[data-field='A7']").remove();
        $(temp1).find("td[data-field='A6']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A3']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A2'] div").text(MapBJ.YZYQ_YHYB);
        $(temp1).find("td[data-field='A3'] div").text(MapCS.YZYQ_YHYB);
        $(temp1).find("td[data-field='A4'] div").text((MapCS.YZYQ_YHYB / CSHJ).toFixed(3));
        $(temp1).find("td[data-field='A5'] div").text((MapCS.YZYQ_YHYB / MapCS.HTJE).toFixed(3));
        $(temp1).find("td[data-field='A6'] div").text(MapCS.Memo_YZYQYHYB);
        MyremoveClass(temp1);

        //第19行数据整理 工程直接成本-业主要求-联络路径
        temp1 = $(".layui-table-body tbody").find("tr[data-index='21']");
        $(temp1).find("td[data-field='A8']").remove();
        $(temp1).find("td[data-field='A7']").remove();
        $(temp1).find("td[data-field='A6']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A3']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A2'] div").text(MapBJ.YZYQ_LLLJ);
        $(temp1).find("td[data-field='A3'] div").text(MapCS.YZYQ_LLLJ);
        $(temp1).find("td[data-field='A4'] div").text((MapCS.YZYQ_LLLJ / CSHJ).toFixed(3));
        $(temp1).find("td[data-field='A5'] div").text((MapCS.YZYQ_LLLJ / MapCS.HTJE).toFixed(3));
        $(temp1).find("td[data-field='A6'] div").text(MapCS.Memo_YZYQLLLJ);
        MyremoveClass(temp1);


        //第20行数据整理 工程直接成本-业主要求-充电桩
        temp1 = $(".layui-table-body tbody").find("tr[data-index='22']");
        $(temp1).find("td[data-field='A8']").remove();
        $(temp1).find("td[data-field='A7']").remove();
        $(temp1).find("td[data-field='A6']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A3']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A1'] div").removeClass("laytable-cell-1-0-0");
        $(temp1).find("td[data-field='A2'] div").text(MapBJ.YZYQ_CDZ);
        $(temp1).find("td[data-field='A3'] div").text(MapCS.YZYQ_CDZ);
        $(temp1).find("td[data-field='A4'] div").text((MapCS.YZYQ_CDZ / CSHJ).toFixed(3));
        $(temp1).find("td[data-field='A5'] div").text((MapCS.YZYQ_CDZ / MapCS.HTJE).toFixed(3));
        $(temp1).find("td[data-field='A6'] div").text(MapCS.Memo_YZYQCDZ);
        MyremoveClass(temp1);

        //第21行数据整理 小计
        temp1 = $(".layui-table-body tbody").find("tr[data-index='23']");
        $(temp1).find("td[data-field='A8']").remove();
        $(temp1).find("td[data-field='A7']").remove();
        $(temp1).find("td[data-field='A1']").attr("colspan", "3");
        $(temp1).find("td[data-field='A1'] div").removeClass("laytable-cell-1-0-0");
        $(temp1).find("td[data-field='A2'] div").removeClass("laytable-cell-1-0-1");
        $(temp1).find("td[data-field='A2'] div").text(BJXJ.toFixed(2));
        $(temp1).find("td[data-field='A3'] div").text(CSXJ.toFixed(2));
        $(temp1).find("td[data-field='A4'] div").text((CSXJ / CSHJ).toFixed(3));
        $(temp1).find("td[data-field='A5'] div").text((CSXJ / MapCS.HTJE).toFixed(3));
        MyremoveClass(temp1);


        //第22行数据整理 工程管理成本-多径合同金额
        temp1 = $(".layui-table-body tbody").find("tr[data-index='24']");
        $(temp1).find("td[data-field='A1']").attr("rowspan", "8");
        $(temp1).find("td[data-field='A2']").attr("colspan", "2");
        $(temp1).find("td[data-field='A8']").remove();
        $(temp1).find("td[data-field='A2'] div").removeClass("laytable-cell-1-0-1");
        $(temp1).find("td[data-field='A7']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A4']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A3'] div").text(BJ_DJHTJE.toFixed(0));
        $(temp1).find("td[data-field='A4'] div").text(CS_DJHTJE.toFixed(0));
        $(temp1).find("td[data-field='A5'] div").text((CS_DJHTJE / CSHJ).toFixed(2));
        $(temp1).find("td[data-field='A6'] div").text((CS_DJHTJE / MapCS.HTJE).toFixed(2));
        $(temp1).find("td[data-field='A7'] div").text(MapCS.Memo_DJHTJE);
        MyremoveClass(temp1);

        //第23行数据整理 工程管理成本-电力局费用-设计费
        temp1 = $(".layui-table-body tbody").find("tr[data-index='25']");
        $(temp1).find("td[data-field='A1']").attr("rowspan", "3");
        $(temp1).find("td[data-field='A8']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A7']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A2'] div").removeClass("laytable-cell-1-0-1");
        $(temp1).find("td[data-field='A3'] div").text((MapBJ.SJF * BJ_DJHTJE).toFixed(2));
        $(temp1).find("td[data-field='A4'] div").text((MapCS.SJF * CS_DJHTJE).toFixed(2));
        $(temp1).find("td[data-field='A5'] div").text(((MapCS.SJF * CS_DJHTJE) / CSHJ).toFixed(2));
        $(temp1).find("td[data-field='A6'] div").text(((MapCS.SJF * CS_DJHTJE) / MapCS.HTJE).toFixed(2));
        $(temp1).find("td[data-field='A7'] div").text(MapCS.SJF);
        $(temp1).find("td[data-field='A8'] div").text(MapCS.Memo_SJF);
        MyremoveClass(temp1);

        //第24行数据整理 工程管理成本-电力局费用-监理费
        temp1 = $(".layui-table-body tbody").find("tr[data-index='26']");
        $(temp1).find("td[data-field='A8']").remove();
        $(temp1).find("td[data-field='A7']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A6']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A2'] div").text((MapBJ.JLF * BJ_DJHTJE).toFixed(2));
        $(temp1).find("td[data-field='A3'] div").text((MapCS.JLF * CS_DJHTJE).toFixed(2));
        $(temp1).find("td[data-field='A4'] div").text(((MapCS.JLF * CS_DJHTJE) / CSHJ).toFixed(2));
        $(temp1).find("td[data-field='A5'] div").text(((MapCS.JLF * CS_DJHTJE) / MapCS.HTJE).toFixed(2));
        $(temp1).find("td[data-field='A6'] div").text(MapCS.JLF);
        $(temp1).find("td[data-field='A7'] div").text(MapCS.Memo_JLF);
        MyremoveClass(temp1);
        
        //第25行数据整理 工程管理成本-电力局费用-多径管理费
        temp1 = $(".layui-table-body tbody").find("tr[data-index='27']");
        $(temp1).find("td[data-field='A8']").remove();
        $(temp1).find("td[data-field='A7']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A6']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A2'] div").text((MapBJ.DJGLF * BJ_DJHTJE).toFixed(2));
        $(temp1).find("td[data-field='A3'] div").text((MapCS.DJGLF * CS_DJHTJE).toFixed(2));
        $(temp1).find("td[data-field='A4'] div").text(((MapCS.DJGLF * CS_DJHTJE) / CSHJ).toFixed(2));
        $(temp1).find("td[data-field='A5'] div").text(((MapCS.DJGLF * CS_DJHTJE) / MapCS.HTJE).toFixed(2));
        $(temp1).find("td[data-field='A6'] div").text(MapCS.DJGLF);
        $(temp1).find("td[data-field='A7'] div").text(MapCS.Memo_DJGLF);
        MyremoveClass(temp1);

        //第26行数据整理 工程管理成本-公司费用-税金
        temp1 = $(".layui-table-body tbody").find("tr[data-index='28']");
        $(temp1).find("td[data-field='A1']").attr("rowspan", "4");
        $(temp1).find("td[data-field='A8']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A7']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A2'] div").removeClass("laytable-cell-1-0-1");
        $(temp1).find("td[data-field='A3'] div").text((MapBJ.SJ * BJ_DJHTJE).toFixed(2));
        $(temp1).find("td[data-field='A4'] div").text((MapCS.SJ * CS_DJHTJE).toFixed(2));
        $(temp1).find("td[data-field='A5'] div").text(((MapCS.SJ * CS_DJHTJE) / CSHJ).toFixed(2));
        $(temp1).find("td[data-field='A6'] div").text(((MapCS.SJ * CS_DJHTJE) / MapCS.HTJE).toFixed(2));
        $(temp1).find("td[data-field='A7'] div").text(MapCS.SJ);
        $(temp1).find("td[data-field='A8'] div").text(MapCS.Memo_SJ);
        MyremoveClass(temp1);

        //第27行数据整理 工程管理成本-公司费用-资金成本
        temp1 = $(".layui-table-body tbody").find("tr[data-index='29']");
        $(temp1).find("td[data-field='A8']").remove();
        $(temp1).find("td[data-field='A7']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A6']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A2'] div").text((MapBJ.ZJCB).toFixed(2));
        $(temp1).find("td[data-field='A3'] div").text((MapCS.ZJCB).toFixed(2));
        $(temp1).find("td[data-field='A4'] div").text(((MapCS.ZJCB) / CSHJ).toFixed(2));
        $(temp1).find("td[data-field='A5'] div").text(((MapCS.ZJCB) / MapCS.HTJE).toFixed(2));
        $(temp1).find("td[data-field='A6'] div").text(MapCS.ZJCB);
        $(temp1).find("td[data-field='A7'] div").text(MapCS.Memo_ZJCB);
        MyremoveClass(temp1);

        //第28行数据整理 工程管理成本-公司费用-公司管理费
        temp1 = $(".layui-table-body tbody").find("tr[data-index='30']");
        $(temp1).find("td[data-field='A8']").remove();
        $(temp1).find("td[data-field='A7']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A6']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A2'] div").text((MapBJ.GSGLF * BJ_DJHTJE).toFixed(2));
        $(temp1).find("td[data-field='A3'] div").text((MapCS.GSGLF * CS_DJHTJE).toFixed(2));
        $(temp1).find("td[data-field='A4'] div").text(((MapCS.GSGLF * CS_DJHTJE) / CSHJ).toFixed(2));
        $(temp1).find("td[data-field='A5'] div").text(((MapCS.GSGLF * CS_DJHTJE) / MapCS.HTJE).toFixed(2));
        $(temp1).find("td[data-field='A6'] div").text(MapCS.GSGLF);
        $(temp1).find("td[data-field='A7'] div").text(MapCS.Memo_GSGLF);
        MyremoveClass(temp1);

        //第29行数据整理 工程管理成本-公司费用-业务费
        temp1 = $(".layui-table-body tbody").find("tr[data-index='31']");
        $(temp1).find("td[data-field='A8']").remove();
        $(temp1).find("td[data-field='A7']").remove();
        $(temp1).find("td[data-field='A6']").attr("data-edit", "text");
        $(temp1).find("td[data-field='A2'] div").text((MapBJ.CoordFee).toFixed(2));
        $(temp1).find("td[data-field='A3'] div").text((MapCS.CoordFee).toFixed(2));
        $(temp1).find("td[data-field='A4'] div").text(((MapCS.CoordFee) / CSHJ).toFixed(2));
        $(temp1).find("td[data-field='A5'] div").text(((MapCS.CoordFee) / MapCS.HTJE).toFixed(2));
        $(temp1).find("td[data-field='A6'] div").text(MapCS.Memo_YWF);

        MyremoveClass(temp1);


        //成本合计
        //第30行数据整理
        temp1 = $(".layui-table-body tbody").find("tr[data-index='32']");
        $(temp1).find("td[data-field='A8']").remove();
        $(temp1).find("td[data-field='A7']").remove();
        $(temp1).find("td[data-field='A6']").remove();
        $(temp1).find("td[data-field='A5']").remove();
        $(temp1).find("td[data-field='A4']").remove();
        $(temp1).find("td[data-field='A1']").attr("colspan", "3");
        $(temp1).find("td[data-field='A2'] div").text(BJHJ.toFixed(2));
        $(temp1).find("td[data-field='A3'] div").text(CSHJ.toFixed(2));
        MyremoveClass(temp1);

        //利润
        //第31行数据整理
        temp1 = $(".layui-table-body tbody").find("tr[data-index='33']");
        $(temp1).find("td[data-field='A8']").remove();
        $(temp1).find("td[data-field='A7']").remove();
        $(temp1).find("td[data-field='A6']").remove();
        $(temp1).find("td[data-field='A5']").remove();
        $(temp1).find("td[data-field='A4']").remove();
        $(temp1).find("td[data-field='A1']").attr("colspan", "3");
        $(temp1).find("td[data-field='A2'] div").text((BJHJ * MapBJ.LRL).toFixed(2));
        $(temp1).find("td[data-field='A3'] div").text((MapCS.HTJE - CSHJ).toFixed(2));
        MyremoveClass(temp1);



    }




</script>

